/**
 * 
 */
package cn.java.innerclass;

/**
* 课程信息
* @author 攀博课堂
* @version v1.0
*/
public class PbCourse {
	
	
	//课程编号
	private long id;
	
	//课程名称
	private String courseName;
	
	//课程价格
	private float price;
	
	public PbCourse() {
		
	}
	public PbCourse(long id,String courseName,float price) {
		this.id = id;
		this.courseName = courseName;
		this.price = price;
	}

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the courseName
	 */
	public String getCourseName() {
		return courseName;
	}

	/**
	 * @param courseName the courseName to set
	 */
	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	/**
	 * @return the price
	 */
	public float getPrice() {
		return price;
	}

	/**
	 * @param price the price to set
	 */
	public void setPrice(float price) {
		this.price = price;
	}
	@Override
	public String toString() {
		return "PbCourse [id=" + id + ", courseName=" + courseName + ", price=" + price + "]";
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PbCourse other = (PbCourse) obj;
		if (id != other.id)
			return false;
		return true;
	}
	
	
	

}
